window: rework the CSD theming layer
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 22 Apr 2013 21:28:23 +0000 (17:28 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 22 Apr 2013 22:10:22 +0000 (18:10 -0400)
commit7bbbb01ff521065c10d41185cc64f2823a5a6c9c
tree9a5733cb65299d64ef74a96cc5bc889ed97bf32e
parenta44d6816d3c20748deefa45a0c3b5ace146e4540
window: rework the CSD theming layer

Instead of having three different boxes and style classes, we can just
get away with the regular background box, plus a window-frame, which
contains the external frame, together with the window drop shadows.

GtkWindow now has special code to ensure the backing actual window is
allocated big enough to accomodate the shadows (using the shadow size
calculations introduced in the previous commit). We also use the margin
value to determine the size of the invisible borders (which can then be
different than the shadow).
gtk/gtkwindow.c